import request from '@/utils/request'


export default {
  //post params
  PostParams: function Post(url, params) {
    return request({
      url: url,
      method: 'post',
      params
    })
  },
  //post data
  PostData: function Post(url, data) {
    return request({
      url: url,
      method: 'post',
      data
    })
  },
  //提交data 和params params 在请求前会呗整合到data中并且置空params
  Post: function Post(url, data, params) {
    return request({
      url: url,
      method: 'post',
      data:data,
      params:params
    })
  },
}